package com.study.d019fxml.userstructargs;

import javafx.fxml.JavaFXBuilderFactory;
import javafx.util.Builder;
import javafx.util.BuilderFactory;

/**
*@description
*@author xtayhame
*date 2020年3月17日
*version
*since v1.0
*/
public class PersonFactoryBuild implements BuilderFactory{
	public final JavaFXBuilderFactory ff = new JavaFXBuilderFactory();

	@Override
	public Builder<?> getBuilder(Class<?> type) {
		if(type == Person.class){
			return new PersonBuilder();
		}

		//返回默认的构造器
		return ff.getBuilder(type);
	}

}
